import { Component } from '@angular/core';
import { FabContainer, NavController } from 'ionic-angular';

@Component({
  selector: 'page-fab',
  templateUrl: 'fab.html'
})
export class Fab {

  array: number[] = [];

  constructor(public navCtrl: NavController) {}

  add() {
    this.array.push(1);
  }

  clickMainFAB() {
    console.log('Clicked open social menu');
  }

  openSocial(network: string, fab: FabContainer) {
    console.log('Share in ' + network);
    fab.close();
  }
}
